# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xcb-util
pkgver=0.4.1
pkgrel=3
pkgdesc="Utility libraries for X C-language Binding"
url="https://xcb.freedesktop.org/"
arch="all"
license="MIT"
depends_dev="libxcb-dev util-macros"
makedepends="$depends_dev m4 gperf"
checkdepends="check-dev"
subpackages="$pkgname-dev"
source="https://xorg.freedesktop.org/archive/individual/lib/xcb-util-$pkgver.tar.xz"

build() {
	CFLAGS="$CFLAGS -flto=auto" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
da67f2f017d2a1788dcf35f28d6956e171303a622a1dd085cd3d69fdb2ed77965d83c557cc926ebf9b32e905eb2cbb5921987250192d78a2f5edc4d437ed7d2b  xcb-util-0.4.1.tar.xz
"
